import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

import { IElecBicycleUser } from 'app/shared/model/elec-bicycle-user.model';

@Component({
    selector: 'jhi-elec-bicycle-user-detail',
    templateUrl: './elec-bicycle-user-detail.component.html'
})
export class ElecBicycleUserDetailComponent implements OnInit {
    elecBicycleUser: IElecBicycleUser;

    constructor(private activatedRoute: ActivatedRoute) {}

    ngOnInit() {
        this.activatedRoute.data.subscribe(({ elecBicycleUser }) => {
            this.elecBicycleUser = elecBicycleUser;
        });
    }

    previousState() {
        window.history.back();
    }
}
